const Router = require('koa-router')

const shortMsgSendConfigController = require('../../controllers/shortMsgSendConfig.js')

const m = require('../../middlewares/admin_auth')

const router = new Router({prefix: '/admin/api/v1/shortMsgSendConfig'})


router.get('/getList', shortMsgSendConfigController.list)

router.get('/dict/sendSetting', shortMsgSendConfigController.getSendSettingDict)

router.post('/create/', m.auth, shortMsgSendConfigController.create)

router.get('/detail/:id', shortMsgSendConfigController.detail)

router.delete('/:id', m.auth, shortMsgSendConfigController.delete)

router.patch('/:id', m.auth, shortMsgSendConfigController.update)

module.exports = router